Vehicle controller, program updating method, and non-transitory storage medium that stores program for updating program

ABSTRACT

A vehicle controller includes: an execution unit configured to execute a control program for controlling a vehicle; a storage unit having a first program storage area to store the control program and a second program storage area to store an update program that is an updated version of the control program and created based on update data acquired from a device located outside the vehicle through a network; and an update unit that stores the update program in the second program storage area based on the update data, regardless of whether the execution unit is executing the control program.

INCORPORATION BY REFERENCE

The disclosure of Japanese Patent Application No. 2018-026151 filed on Feb. 16, 2018 including the specification, drawings and abstract is incorporated herein by reference in its entirety.

BACKGROUND 1. Field of the Disclosure

The present disclosure relates to a vehicle controller, a program updating method, and a non-transitory storage medium that stores a program for updating a program.

2. Description of Related Art

A vehicle is equipped with a plurality of controllers called electronic control units (ECUs) each having a storage unit and a control unit (processor), and the control units of the respective controllers execute programs stored in the storage units to perform various processes for vehicle control.

Such programs are sometimes updated to improve the functions or add a new function. Japanese Patent Application Publication No. 2016-60407 discloses a system in which program update data is downloaded to a mobile terminal via a network and the data is provided from the mobile terminal to a vehicle to rewrite and thereby update the program.

SUMMARY

In such a program updating system, a program is rewritten while the vehicle is stationary, for example, with the ignition switch off, since rewriting a program for an update while that program is being executed may cause a malfunction. Thus, there is a restriction on the execution timing of the program updating process.

The present disclosure provides a vehicle controller, a program updating method, and a non-transitory storage medium that stores a program for updating a program.

A first aspect of the present disclosure is a vehicle controller including: an execution unit configured to execute a control program for controlling a vehicle; a storage unit having a first program storage area configured to store the control program and a second program storage area configured to store an update program that is an updated version of the control program, the update program being created based on update data acquired from a device located outside the vehicle through a network; and an update unit configured to store the update program in the second program storage area based on the update data, regardless of whether the execution unit is executing the control program.

Thus, the update program can be stored even while the control program to be currently executed is being executed, which can ease the restriction on the execution timing of program rewriting and improve the convenience.

In the above aspect, the execution unit may be configured to perform first vehicle control based on an execution output of the control program and execute the update program; and the update unit may be configured to determine, based on an execution output of the update program, whether to switch from the first vehicle control to second vehicle control based on the execution output of the update program.

In the above configuration, the update unit may be configured to compare the execution output of the control program and the execution output of the update program, and determine whether to switch from the first vehicle control to the second vehicle control based on a comparison result.

In the above configuration, the update unit may be configured to determine, when the update unit verifies that a predetermined function has been realized by the update program, to switch from the first vehicle control to the second vehicle control.

In the above configuration, the execution unit may be configured to perform, when the update unit determines to switch from the first vehicle control to the second vehicle control, the second vehicle control.

According to the configuration, the update program is used for actual vehicle control after an operation based on the execution output of the update program is verified in each vehicle. The reliability of vehicle control can be maintained by thus not updating the program in the event that an intended function cannot be obtained.

In the above configuration, the update unit may be configured to delete, when the update unit determines to switch from the first vehicle control to the second vehicle control, the control program from the first program storage area by moving the update program from the second program storage area to the first program storage area so as to overwrite the first program storage area.

According to the configuration, a pre-update program that is no longer needed can be deleted to clear the storage area.

In the above configuration, a function of the execution unit may be configured to be executed by one or more processor cores of a plurality of processor cores included in one multi-core processor.

According to the configuration, processes in the execution unit can be concurrently executed in an efficient manner.

A second aspect of the present disclosure is a method of updating a program in a vehicle controller including: an execution unit configured to execute a control program for controlling a vehicle; a storage unit having a first program storage area configured to store the control program and a second program storage area configured to store an update program that is an updated version of the control program, the update program being created based on update data acquired from a device located outside the vehicle through a network; and an update unit (23) configured to perform a process of updating the control program. The method is executed by the update unit and comprising storing the update program in the second program storage area based on the update data, regardless of whether the execution unit is executing the control program.

A third aspect of the present disclosure is a non-transitory storage medium that stores a program for updating a program in a vehicle controller including: an execution unit that executes a control program for controlling a vehicle; a storage unit having a first program storage area to store the control program and a second program storage area to store an update program that is an updated version of the control program and created based on update data acquired from a device located outside the vehicle through a network; and an update unit that performs a process of updating the control program, the program for updating the program in the vehicle controller causing the update unit to store the update program in the second program storage area based on the update data, regardless of whether the execution unit is executing the control program.

According to the configurations, the update program can be stored even while the control program to be currently executed is being executed, which can ease the restriction on the execution timing of program rewriting and improve the convenience.

As has been described above, the present disclosure can provide a vehicle controller, a program updating method, and a program that can improve convenience by easing the restriction on the timing of program updating and that can also maintain reliability.

BRIEF DESCRIPTION OF THE DRAWINGS

Features, advantages, and technical and industrial significance of exemplary embodiments of the disclosure will be described below with reference to the accompanying drawings, in which like numerals denote like elements, and wherein:

FIG. 1 is a functional block diagram of a vehicle controller and a peripheral part thereof according to an embodiment of the present disclosure; and

FIG. 2 is a sequence chart showing processes of the vehicle controller according to the embodiment of the present disclosure.

DETAILED DESCRIPTION OF EMBODIMENTS

Overview

In a vehicle controller according to the present disclosure, an update program is stored in a storage area different from that of a control program being currently executed, which allows for the great convenience of being able to execute a process of storing the update program in the storage area even while the control program is being executed. The update program is executed for verification of an operation and is used for actual vehicle control when the operation is verified, so that the vehicle controller can maintain reliability.

EMBODIMENT

An embodiment of the present disclosure will be described below in detail with reference to the drawings.

Configuration

FIG. 1 is a functional block diagram of a vehicle controller 100 and a peripheral part thereof in the embodiment. As an example, the vehicle controller 100 is an automatic driving ECU that controls automatic driving of a vehicle. The vehicle controller 100 includes a storage unit 10 and an operation unit 20. The operation unit 20 performs vehicle control, such as automatic driving control, by executing a program stored in the storage unit 10. Specifically, the operation unit 20 acquires conditions around the vehicle, such as the presence of an object, from sensors including a radar 301 and a camera 302 installed in the vehicle, and calculates a control output showing contents of vehicle control, such as steering, acceleration, and deceleration, based on the acquired conditions. The operation unit 20 then outputs the control output to a steering ECU 401, an engine ECU 402, a brake ECU 403, and the like and causes the ECUs to execute steering, acceleration, deceleration, etc. based on the control output. Moreover, the operation unit 20 acquires update data from an OTA receiver ECU 200 that receives update data from an off-vehicle server or the like through a network, and executes a process of updating the program stored in the storage unit 10 based on the acquired update data.

The operation unit 20 includes a first execution unit 21, a second execution unit 22 (the units will be collectively referred to as an execution unit 24), and an update unit 23. The units will be described later. While the configuration of the operation unit 20 is not limited, as an example, the operation unit 20 is a multi-core processor that is a CPU having a plurality of processor cores. The functions of the first execution unit 21, the second execution unit 22, and the update unit 23 may be realized by the same processor core that executes the functions while switching tasks, or may be realized by different processor cores that concurrently execute the functions. The update unit 23 may be a different CPU from the execution unit 24. By using a multi-core processor, a plurality of processes can be executed concurrently in an efficient manner.

The storage unit 10 has a first program storage area 11, a second program storage area 12, a first control output storage area 13, and a second control output storage area 14. The areas will be described later. While the configuration of the storage unit 10 is not limited, as an example, the first program storage area 11 and the second program storage area 12 are formed by non-volatile flash ROM memories, and the first control output storage area 13 and the second control output storage area 14 are formed by volatile memories (RAM).

Process

In the following, an example of a program updating process according to the embodiment will be described. FIG. 2 is a sequence chart illustrating the program updating process. The sequence is started, for example, when the ignition switch is turned on.

Step S101: The execution unit 24 performs the above-described vehicle control by executing a program stored in the storage unit 10. Here, the first execution unit 21 performs the vehicle control by executing a control program to be currently executed that is stored in the first program storage area 11, creating and outputting a control output, and controlling the ECUs accordingly.

Step S102: The OTA receiver ECU 200 acquires program update data. For example, the update data is received as a response from an off-vehicle server when the OTA receiver ECU 200 makes an inquiry to the server.

Step S103: The update unit 23 creates an update program based on the update data and stores the update program in the second program storage area 12. While the format of the update data is not limited, the update data may be, for example, difference data containing a part updated from the control program or may be compressed data of the difference data. In the case, the update unit 23 can store the update program in the second program storage area 12 by copying a part not to be updated of the control program from the first program storage area 11 to the second program storage area 12, creating an updated part based on the update data, and writing the updated part in the second program storage area 12. Alternatively, the update data may constitute the entire update program.

The process in step S101 and the processes in steps S102, S103 are executed concurrently and independently of each other. When the ignition switch is turned off during the processes, the process in step S101 is interrupted, but the processes in steps S102, S103 may be interrupted and may be continued. The processes in steps S102, S103 may be executed even when the process in step S101 is not being executed. If interrupted, the processes in steps S102, S103 are executed again when the ignition switch is turned on next time.

The following processes are executed when the above processes in steps S101, S102, S103 have been executed and the ignition switch has been once turned off and then turned on.

Step S104: The execution unit 24 performs the above-described vehicle control by executing the control program stored in the storage unit 10. Here, the first execution unit 21 executes the control program stored in the first program storage area 11, creates a control output as a program execution output, and outputs the control output to the ECUs to execute the vehicle control. The first execution unit 21 stores the control output in the first control output storage area 13.

Step S105: The execution unit 24 executes the update program stored in the storage unit 10. Here, the second execution unit 22 executes the update program stored in the second program storage area 12 and creates a control output as an execution output of the update program. The second execution unit 22 stores the control output in the second control output storage area 14. However, unlike the first execution unit 21 in step S104, the second execution unit 22 does not output the control output to the ECUs or execute the actual vehicle control. In steps S104, S105, the execution unit 24 can detect that the update program has been stored in the storage unit 10, by, for example, receiving notification from the update unit 23 or referring to the storage unit 10.

The above process in step S104 and process in step S105 are concurrently executed. When the ignition switch is turned off thereafter, the update unit 23 determines, based on the control output that is an execution output of the update program stored in the second control output storage area 14, whether to switch from the vehicle control based on the execution output of the control program that is currently performed, to the vehicle control based on the execution output of the update program. The determination process described in the following is an example and the determination process is not limited thereto. Step S106: The update unit 23 makes the above determination, for example, by verifying that the control output of the update program realizes an expected predetermined function. In the step, the update unit 23 compares the control output of the control program stored in the first control output storage area 13 and the control output of the update program stored in the second control output storage area 14. For example, in the case where a predetermined function expected of the update program is improvement of ride comfort, the predetermined function can be verified to be realized, when the control output of the update program indicates that the frequency of rapid steering, rapid acceleration, or rapid deceleration is equal to or lower than a predetermined value or indicates a lower frequency than the control output of the control program. A criterion for verifying such a predetermined function may be written in the update program or written in the control output of the update program so as to allow the update unit 23 to refer to the criterion. Alternatively, the update unit 23 may make the determination by using information from an acceleration sensor and the like installed in the vehicle.

Step S107: When the update unit 23 verifies that the predetermined function of the update program is realized, the update unit 23 determines to switch from the vehicle control based on the execution output of the control program that is currently performed, to the vehicle control based on the execution output of the update program. In the case, for example, the update unit 23 can clear the second program storage area 12 by moving the update program to the first program storage area 11 so as to overwrite the first program storage area 11 and delete the control program that is no longer needed. The update unit 23 may determine to switch to the vehicle control based on the execution output of the update program after verifying a predetermined multiple number of times that the predetermined function of the update program is realized, and the vehicle control based on the execution output of the control program may be performed until the determination is made.

Step S108: When the update unit 23 cannot verify that the predetermined function of the update program is realized, the update unit 23 determines to perform the vehicle control based on the execution output of the control program.

The following processes are performed when the above process in step S107 or S108 has been executed and the ignition switch has been turned on next time.

Step S109: According to the determination result of the update unit 23, the execution unit 24 selects either the update program or the control program as a program to be used for vehicle control, and performs vehicle control based on the execution output of the selected program. Here, as an example, the first execution unit 21 executes the program, creates and outputs a control output, and controls the ECUs accordingly. However, instead of the step, the processes in steps S105 to S108 are repeated, in the case where the update unit 23 verifies a predetermined multiple number of times whether the predetermined function of the update program is realized in step S107, and where the update unit 23 selects the control program as the program to be used for vehicle control because the predetermined multiple number of times has not yet been reached. When steps S105 to S108 are repeated a predetermined number of times and yet the update unit 23 cannot verify that the predetermined function of the update program is realized in step S107, the update unit 23 may stop verification and further delete the update program. This concludes the update sequence.

Advantages

In the above update sequence, an update program can be stored based on update data acquired from an external server even while a control program is being executed, which can ease the restriction on execution timing and improve the convenience.

Although update programs undergo a thorough quality check before being provided, the increasing sophistication and complication of driving support technology may in the future lead to a situation where update programs fail to fully exhibit expected functions under conditions where the characteristics of a vehicle or a road on which the vehicle is running, the driving characteristics of a user, etc. are peculiar and extreme. In the above update sequence, the update program is used for actual vehicle control after the update program is executed and realization of the predetermined function is verified case by case under the peculiar conditions surrounding each vehicle. The reliability of vehicle control can be maintained by thus not using the update program for vehicle control in the event that the intended function cannot be obtained by the update program.

The present disclosure can be regarded not only as a vehicle controller but also as a program updating method executed by a processor of a vehicle controller and as a program for updating a program.

The present disclosure is useful for vehicles and the like having an automatic driving function etc. 

What is claimed is:
 1. A vehicle controller comprising: an execution unit configured to execute a control program for controlling a vehicle; a storage unit having a first program storage area configured to store the control program and a second program storage area configured to store an update program that is an updated version of the control program, the update program being created based on update data acquired from a device located outside the vehicle through a network; and an update unit configured to store the update program in the second program storage area based on the update data, regardless of whether the execution unit is executing the control program.
 2. The vehicle controller according to claim 1, wherein: the execution unit is configured to perform first vehicle control based on an execution output of the control program and execute the update program; and the update unit is configured to determine, based on an execution output of the update program, whether to switch from the first vehicle control to second vehicle control based on the execution output of the update program.
 3. The vehicle controller according to claim 2, wherein the update unit is configured to compare the execution output of the control program and the execution output of the update program, and determine whether to switch from the first vehicle control to the second vehicle control based on a comparison result.
 4. The vehicle controller according to claim 2, wherein the update unit is configured to determine, when the update unit verifies that a predetermined function has been realized by the update program, to switch from the first vehicle control to the second vehicle control.
 5. The vehicle controller according to claim 2, wherein the execution unit is configured to perform, when the update unit determines to switch from the first vehicle control to the second vehicle control, the second vehicle control.
 6. The vehicle controller according to claim 2, wherein the update unit is configured to delete, when the update unit determines to switch from the first vehicle control to the second vehicle control, the control program from the first program storage area by moving the update program from the second program storage area to the first program storage area so as to overwrite the first program storage area.
 7. The vehicle controller according to claim 1, wherein a function of the execution unit is configured to be executed by one or more processor cores of a plurality of processor cores included in one multi-core processor.
 8. A method of updating a program in a vehicle controller including: an execution unit configured to execute a control program for controlling a vehicle; a storage unit having a first program storage area configured to store the control program and a second program storage area configured to store an update program that is an updated version of the control program, the update program being created based on update data acquired from a device located outside the vehicle through a network; and an update unit configured to perform a process of updating the control program, the method being executed by the update unit and comprising storing the update program in the second program storage area based on the update data, regardless of whether the execution unit is executing the control program.
 9. A non-transitory storage medium that stores a program for updating a program in a vehicle controller including: an execution unit that executes a control program for controlling a vehicle; a storage unit having a first program storage area to store the control program and a second program storage area to store an update program that is an updated version of the control program and created based on update data acquired from a device located outside the vehicle through a network; and an update unit that performs a process of updating the control program, the program for updating the program in the vehicle controller causing the update unit to store the update program in the second program storage area based on the update data, regardless of whether the execution unit is executing the control program. 